package cn.supermarket.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddVipDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 验证请求参数失败的描述文本前缀
     */
    private static final String VALIDATE_MESSAGE_PREFIX = "注册会员失败，";

    /**
     * 会员姓名
     */
    @ApiModelProperty(value = "会员姓名", required = true, dataType = "String", example = "张泽泽")
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "请填写会员姓名！")
    private String name;
    /**
     * 会员性别
     */
    @ApiModelProperty(value = "会员性别", required = true, dataType = "String", example = "男")
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "请填写会员性别！")
    private String gender;
    /**
     * 会员电话
     */
    @ApiModelProperty(value = "会员电话", required = true, dataType = "String", example = "16682272072")
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "请填写会员电话！")
    private String phone;
    /**
     * 会员生日
     */
    @ApiModelProperty(value = "会员生日", dataType = "Date", example = "2022-07-03")
    private Date birthday;
    /**
     * 操作人员
     */
    @ApiModelProperty(value = "操作人员", required = true, dataType = "String", example = "admin001")
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "请填写操作人员！")
    private String operator;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", dataType = "String")
    private String remarks;

}
